package cn.yunhe.action.temp;

import cn.yunhe.pojo.Book;
import cn.yunhe.service.BookService;
import cn.yunhe.util.BaseAction;

import java.util.List;

public class QueryBookAction1 extends BaseAction {
    private String radioValue;

    private String keywords;

    BookService bookService=new BookService();

    public String queryByBname(){
        System.out.println("<===radioValue1====>"+radioValue);
        List<Book> list=bookService.queryByBname(keywords);
        getMap2Request().put("list",list);
        return SUCCESS;
    }
    public String queryByBauthor(){
        System.out.println("<===radioValue2====>"+radioValue);
        List<Book> list=bookService.queryByBname(keywords);
        getMap2Request().put("list",list);
        return SUCCESS;
    }
    public String queryByBpress(){
        System.out.println("<===radioValue3====>"+radioValue);
        List<Book> list=bookService.queryByBname(keywords);
        getMap2Request().put("list",list);
        return SUCCESS;
    }


    public String getRadioValue() {
        return radioValue;
    }

    public void setRadioValue(String radioValue) {
        this.radioValue = radioValue;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }
}
